﻿using UnityEngine;
using System.Collections;

public class ObstacleBlock : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

	}
	void OnCollisionEnter2D(Collision2D coll)
	{
		Debug.Log ("Collide");
		if (coll.gameObject.tag == "GlassElement") 
		{
			rigidbody2D.isKinematic = false;
			collider2D.enabled = false;
			
		}
	}
}
